package co.beto.commons

{
	import mx.core.UIComponent;
	
	public class Constant
	{
		public function Constant()
		{
		}
		
		public static var multiply_alpha:Number = 0.7;
		
		
		public static var default_width_image:int = 120;
		public static var default_height_image:int = 90;
		public static var default_width_text:int = 200;
		public static var default_height_text:int = 30;
		public static var collaborn_default_border_size_0:int = 0;
		public static var collaborn_default_border_size_1:int = 10;
		public static var collaborn_default_border_size_2:int = 20;
		public static var collaborn_default_border_size_3:int = 30;
		public static var collaborn_default_border_size_4:int = 40;
		
		public static var SAVE_DESIGN:int = 2;
		
		public static var SAVE_GOODS:int = 1;
		
		public static var ERROR_CODE:int = 2;
		
		public static var SUCCESS_CODE:int = 1;
		public static var _siteUrl:String = "http://tixong.com/Demo/bin-release/";
		//public static var _siteUrl:String = "http://lc.dev.samuraiworks.com/swf/xml/"; 
		
		// JP
		[Embed(source="assets/images/fonts/txt_jp1.png")]
        public static var JP_FGCCHGW7:Class; 
        
        [Embed(source="assets/images/fonts/txt_jp2.png")]
        public static var JP_FGCCHMW7:Class;
        
        [Embed(source="assets/images/fonts/txt_jp3.png")]
        public static var JP_KozGoStdBold:Class;
        
        [Embed(source="assets/images/fonts/txt_jp4.png")]
        public static var JP_KozMinProBold:Class;
        
        // NUMBER
        
        [Embed(source="assets/images/fonts/num_1.png")]
        public static var NU_FGCCHGW7:Class; 
        
        [Embed(source="assets/images/fonts/num_2.png")]
        public static var NU_FGCCHMW7:Class;
        
        [Embed(source="assets/images/fonts/num_3.png")]
        public static var NU_KozGoStdBold:Class;
        
        [Embed(source="assets/images/fonts/num_4.png")]
        public static var NU_KozMinProBold:Class;
        
		     
        
        
        public static var currentFont:String = "FGCCHGW7";
        
        
        // Label A screen
        [Embed(source="resources/label/A00_SimpleEdit.png")]
        public static var A00_SimpleEdit:Class;
        
        [Embed(source="resources/label/A001_GoodsBaseColorChange.png")]
        public static var A001_GoodsBaseColorChange:Class;
        
        [Bindable]
        [Embed(source="resources/label/A001_GoodsDetail_NotFocus.png")]
        public static var A001_GoodsDetail_NotFocus:Class;
        
        [Bindable]
        [Embed(source="resources/label/A001_GoodsDetail_OnFocus.png")]
        public static var A001_GoodsDetail_OnFocus:Class;
        
        [Bindable]
        [Embed(source="resources/label/A002_CategoryOption.png")]
        public static var A002_CategoryOption:Class;
        
        
        [Embed(source="resources/label/A002_CollaboStock.png")]
        public static var A002_CollaboStock:Class;
        
        [Embed(source="resources/label/A002_DesignStock.png")]
        public static var A002_DesignStock:Class;
        
        [Embed(source="resources/label/A002_GoodsStock.png")]
        public static var A002_GoodsStock:Class;
        
        [Embed(source="resources/label/A002_KeywordInput.png")]
        public static var A002_KeywordInput:Class;
        
        [Embed(source="resources/label/A002_MaximumIs3.png")]
        public static var A002_MaximumIs3:Class;
        
        [Embed(source="resources/label/A002_Thumbnail.png")]
        public static var A002_Thumbnail:Class;
        
        [Bindable]
        [Embed(source="resources/label/A002_Thumbnail_Goods.png")]
        public static var A002_Thumbnail_Goods:Class;
        
        [Bindable]
        [Embed(source="resources/label/A003_DesignPrice.png")]
        public static var A003_DesignPrice:Class;
        
        [Bindable]
        [Embed(source="resources/label/A004_GoodsPrice.png")]
        public static var A004_GoodsPrice:Class;
        
        // Label B screen
        
        [Embed(source="resources/label/B00_DetailEdit.png")]
        public static var B00_DetailEdit:Class;
        
        [Embed(source="resources/label/B002_AboutDataType_NotFocus.png")]
        public static var B002_AboutDataType_NotFocus:Class;
        
        [Embed(source="resources/label/B002_AboutDataType_OnFocus.png")]
        public static var B002_AboutDataType_OnFocus:Class;
        
        [Embed(source="resources/label/B003_ImgCollaboDesign.png")]
        public static var B003_ImgCollaboDesign:Class;
        
        [Embed(source="resources/label/B003_ImgMyLibrary.png")]
        public static var B003_ImgMyLibrary:Class;
        
        [Embed(source="resources/label/B003_RecentlyUseColor.png")]
        public static var B003_RecentlyUseColor:Class;
        
        [Embed(source="resources/label/B003_ShapeLibrary.png")]
        public static var B003_ShapeLibrary:Class;
        
        [Embed(source="resources/label/B003_TextColorChange.png")]
        public static var B003_TextColorChange:Class;
        
        [Embed(source="resources/label/B003_TextFontList.png")]
        public static var B003_TextFontList:Class;
        
        // dialog
        [Embed(source="resources/dialog/AboutDataType.png")]
        public static var AboutDataType:Class;
        
        [Embed(source="resources/dialog/CommuicateError.png")]
        public static var CommunicateError:Class;
        
        [Embed(source="resources/dialog/IsItOkIfDelete.png")]
        public static var IsItOkIfDelete:Class;
        
        [Embed(source="resources/dialog/MyStockIsFull.png")]
        public static var MyStockIsFull:Class;
        
        [Embed(source="resources/dialog/SaveDesignInforThenClose.png")]
        public static var SaveDesignInforThenClose:Class;
        
        [Embed(source="resources/dialog/SomeFuncIsNotUsedInThisDesign_EditingItemwillBeDeletedAutomaticlly.png")]
        public static var someFuncNotUse:Class;
        
        [Embed(source="resources/dialog/PleaseChoiseCollaBo.png")]
        public static var PleaseChoiseCollaBo:Class;
        
        [Embed(source="resources/dialog/PleaseChoiseDesign.png")]
        public static var PleaseChoiseDesign:Class;
        
        [Embed(source="resources/dialog/PleaseChoiseGoods.png")]
        public static var PleaseChoiseGoods:Class;
        
        [Embed(source="resources/dialog/IfAddThisDesignTheOpoDesignWillBeReplaced.png")]
        public static var IfAddThisDesignTheOpoDesignWillBeReplaced:Class;
        
        [Embed(source="resources/dialog/ThisDesignIsExisting.png")]
        public static var ThisDesignIsExisting:Class;
		
		// List of Japan font
		[Bindable]
		public static var jpFontList:Array =	
		[{label:"FGCCHGW7", data:"FGCCHGW7", image:JP_FGCCHGW7},
		 {label:"FGCCHMW7", data:"FGCCHMW7",  image:JP_FGCCHMW7}, 
		 {label:"KozGoStdBold", data:"KozGoStdBold",   image:JP_KozGoStdBold},
		 {label:"KozMinProBold", data:"KozMinProBold",   image:JP_KozMinProBold}
		];
		
		// List of Japan font
		[Bindable]
		public static var nuFontList:Array =	
		[{label:"FGCCHGW7", data:"FGCCHGW7", image:NU_FGCCHGW7},
		 {label:"FGCCHMW7", data:"FGCCHMW7",  image:NU_FGCCHMW7}, 
		 {label:"KozGoStdBold", data:"KozGoStdBold",   image:NU_KozGoStdBold},
		 {label:"KozMinProBold", data:"KozMinProBold",   image:NU_KozMinProBold}
		];
		
		[Bindable]
		public static var enFontList:Array =	
		[
		{label:"FUTURAXK", data:"FUTURAXK", image:"assets/images/fonts/txt_eng2.png"},
		{label:"FUTURAH", data:"FUTURAH", image:"assets/images/fonts/txt_eng3.png"},
		 {label:"COOPBL", data:"COOPBL", image:"assets/images/fonts/txt_eng5.png"}, 	 
		 {label:"HoboStd", data:"HoboStd", image:"assets/images/fonts/txt_eng6.png"}
		 
		];
		
		public static function createMask(w_:int, h_:int):UIComponent {
			var maskObject : UIComponent = new UIComponent();
			maskObject.graphics.beginFill(0xFFFFFF, 0.0);
			maskObject.graphics.drawRect(0, 0, w_, h_);
			maskObject.graphics.endFill();
			maskObject.x = 0;
			maskObject.y = 0; 
			return maskObject;
		}
		
		public static var colorArray:Array = new Array(
			0xFFFFFF, 0x000000, 0xFF0000, 0xFFFF00, 0x00FF00, 0x00FFFF, 0x0000FF, 0xFF00FF, 0xC0C0C0, 0x808080, 0x800000, 0x808000, 0x008000, 0x008080, 0x000080, 0x800080,
			0xF2F2F2, 0xE6E6E6, 0xDDDDDD, 0xCCCCCC, 0xBBBBBB, 0xAAAAAA, 0x9B9B9B, 0x888888, 0x777777, 0x696969, 0x5D5D5D, 0x505050, 0x444444, 0x323232, 0x222222, 0x0F0F0F,
			0xFF9A9A, 0xFFCC9A, 0xFFEE9A, 0xFFFF9A, 0xCCFF9A, 0x9AFF9A, 0x9AFFCC, 0x9AFFE6, 0x9AFFFF, 0x9ACCFF, 0x9A9AFF, 0xCC9AFF, 0xE69AFF, 0xFF9AFF, 0xFF9AE6, 0xFF9ABB,
			0xFF3333, 0xFF9A33, 0xFFCC33, 0xFFFF33, 0x9AFF33, 0x33FF33, 0x33FF9A, 0x33FFCC, 0x33FFFF, 0x339AFF, 0x3333FF, 0x7733FF, 0xCC33FF, 0xFF33FF, 0xFF33CC, 0xFF3377,
			0xFF0000, 0xFF9A00, 0xFFCC00, 0xFFFF00, 0x9AFF00, 0x00FF00, 0x00FF65, 0x00FFCC, 0x00FFFF, 0x0065FF, 0x0000FF, 0x5500FF, 0xCC00FF, 0xFF00FF, 0xFF00CC, 0xFF0055,
			0xCCA3A3, 0xCCB8A3, 0xCCC2A3, 0xCCCCA3, 0xBFCCA3, 0xBFCCA3, 0xA3CCB8, 0xA3CCC2, 0xA3CCCC, 0xA3B8CC, 0xA3A3CC, 0xB1A3CC, 0xC2A3CC, 0xCCA3CC, 0xCCA3C2, 0xCCA3B1,
			0xCC5252, 0xCC7A52, 0xCCA452, 0xCCCC52, 0xA4CC52, 0x52CC52, 0x52CC90, 0x52CCA4, 0x52CCCC, 0x527CCC, 0x5252CC, 0x7A52CC, 0xA452CC, 0xCC52CC, 0xCC52A6, 0xCC527A,
			0xCC0000, 0xCC6500, 0xCC9A00, 0xCCCC00, 0x9ACC00, 0x00CC00, 0x00CC65, 0x00CC9A, 0x00CCCC, 0x0065CC, 0x0000CC, 0x3300CC, 0x9A00CC, 0xCC00CC, 0xCC009A, 0xCC0044,
			0x650000, 0x653300, 0x654D00, 0x656500, 0x336500, 0x006500, 0x006533, 0x00654D, 0x006565, 0x003365, 0x000065, 0x330065, 0x4D0065, 0x650065, 0x65004D, 0x650033
		);
		
		public static var FLAG_TAB_DESIGN:int = 0;
		public static var FLAG_TAB_GOODS:int = 0;
		
		// label for application
		// =====================================================================
		public static var TOOLTIP_PREVIEW:String = "This product blends into the color of the ink substrate";
		public static var TOOLTIP_TEXT_INPUT:String = "Imput your text and click Add button";
		public static var TOOLTIP_SHAPE:String = "Drag and drop into design area";
		public static var TOOLTIP_TYPE_IMAGE:String = "[*.gif] [*.jpeg] [*.jpg] [*.png]";
		// =====================================================================
		
		
		
		
		
	}
}